package com.fanshuai.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.event.RefreshRoutesEvent;
import org.springframework.cloud.gateway.route.RouteDefinition;
import org.springframework.cloud.gateway.route.RouteDefinitionWriter;
import org.springframework.web.reactive.function.server.support.RouterFunctionMapping;
import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping;
import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping;

@SpringBootApplication(
        scanBasePackages = {"com.fanshuai.springcloud"}
)
@EnableDiscoveryClient
public class GatewayStarter {
    public static void main(String[] args) {

        SimpleUrlHandlerMapping simpleUrlHandlerMapping;
        RequestMappingHandlerMapping requestMappingHandlerMapping;
        RouterFunctionMapping routerFunctionMapping;

        RouteDefinition routeDefinition;
        RouteDefinitionWriter routeDefinitionWriter;
        RefreshRoutesEvent refreshRoutesEvent;

        SpringApplication.run(GatewayStarter.class, args);
    }
}
